package com.lagou.homeWork;

public class Manager {
    //定义私有属性
    private String name;
    private int id;
    private double salary;
    private double bonus;

    //定义空构造
    public Manager() {
    }

    //定义有参构造
    public Manager(String name, int id, double salary, double bonus) {
        setName(name);
        setId(id);
        setSalary(salary);
        setBonus(bonus);
    }


    // 定义 get,set方法给成员变量赋值或者获取成员变量的值
    public String getName() {
        return name;
    }

    public void setName(String name) {
        this.name = name;
    }

    public int getId() {
        return id;
    }

    public void setId(int id) {
        this.id = id;
    }

    public double getSalary() {
        return salary;
    }

    public void setSalary(double salary) {
        this.salary = salary;
    }

    public double getBonus() {
        return bonus;
    }

    public void setBonus(double bonus) {
        this.bonus = bonus;
    }

    //定义行为 work 方法
    public void work() {
        System.out.println("工号为"+id+"基本工资为"+salary+"奖金为"+bonus+"的项目经理" +
                name+"正在努力的做着管理工作，分配任务，检查员工提交上来的代码。。。");
    }
}
